<?php

declare(strict_types=1);

namespace App\Request;

use Hyperf\Validation\Request\FormRequest;

class StoreUserInfoBasicRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     */
    public function rules(): array
    {
        return [
            'true_name'=>'required',
            'sex' => 'required',
            'user_type'=>'required',
            'id_card'=>'required',
            'house_address'=>'required',
            'birthday' => 'required'
        ];
    }

    public function attributes(): array
    {
        return [
            'true_name'=>'姓名',
            'sex' => '性别',
            'user_type'=>'身份',
            'id_card'=>'身份证号',
            'house_address'=>'居住地址',
            'birthday' => '生日'
        ];
    }
}
